/* Copyright 2022 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* This sheet is appended to html.css before parsing which means the selectors
   below are in the default html namespace:

   @namespace "http://www.w3.org/1999/xhtml"
*/

/*
   This is in a separate file since the CSS is conditionally applied based on
   a runtime flag. Merge this with html.css. See crbug.com/1338641.
*/

/* These declarations must match the values applied for BuildInitialStyleForImg() in
   style_resolver.cc */
video, canvas, img {
   overflow: clip;
   overflow-clip-margin: content-box;
}

iframe, embed, object, fencedframe, portal {
   overflow: clip !important;
   overflow-clip-margin: content-box !important;
}
